package com.mo.feignservice;

import com.mo.entity.Category;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("API-CATEGORY")
public interface CategoryFeignService {
    @GetMapping("/category/selectOne")
    public Category selectOne(@RequestParam("id") Integer id);
}
